function UserIndexController($scope, $http) {
    function getUserList() {
        $http({
            url: 'user/getUserList',
            method: 'get'
        }).success(function (response) {
            console.log(response);
            $scope.list = response;
        })
    }

    getUserList();
}